package com.xqboss.apps.dto.user;

import com.xqboss.apps.enums.user.UserWalletEnum;
import com.xqboss.apps.enums.user.WalletChangeDirectionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * 修改用户钱包请求体
 *
 * @author Trent
 * @date 2023/8/19
 */
@ApiModel
@Data
public class ChangeUserWalletDto {

    @ApiModelProperty(value = "用户ID",required = true)
    @NotNull(message = "请输入用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户钱包类型", required = true)
    @NotNull(message = "请输入钱包类型")
    private UserWalletEnum type;

    @ApiModelProperty(value = "变动方向", required = true)
    @NotNull(message = "请输入变动方向")
    private WalletChangeDirectionEnum direction;

    @ApiModelProperty(value = "变动金额",required = true)
    @NotNull(message = "请输入变动金额")
    @Positive(message = "变动金额应该大于0")
    private BigDecimal amount;

    @ApiModelProperty("修改备注")
    private String remarks;
}
